from django.shortcuts import render,HttpResponse
from django.db.models import Q
from django.views import View
from.models import User

# Create your views here.
class Get(View):
    def get(self,request):
        # data=User.objects.filter(name='张三', password='123456').values()
        # print(data)
        data=User.objects.filter(Q(name='张三')|Q(password='222222')).values()
        print(data)

        return HttpResponse('hello world')
